POV-Ray : Newsgroups : povray.general : #IF question using a substring : Re: #IF question using a substring Server Time
7 Aug 2024 23:20:10 EDT (-0400)
  Re: #IF question using a substring  
From: Wlodzimierz ABX Skiba
Date: 9 May 2001 11:26:26
Message: <3af961a2$1@news.povray.org>
Patrick Dugan wrote in message <3af94c4c$1@news.povray.org>...
>I am trying to determine what the front of a string is and depending on what
>that substring is declare certan values.

You should look at description of strcmp() in "Float Functions" chapter. Of
course in POV documentation.

--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.